package com.train.springboot.springboottrain.mapper;

import com.train.springboot.springboottrain.model.Student;
import org.apache.ibatis.annotations.Mapper;

//@Mapper/*扫描DAO接口到spring容器*/
public interface StudentMapper {
//    根据主键删除
    int deleteByPrimaryKey(Integer id);
//      增
    int insert(Student record);
//选择性新增
    int insertSelective(Student record);
//      查
    Student selectByPrimaryKey(Integer id);
//      选择性新增
    int updateByPrimaryKeySelective(Student record);
//      根据主键修改
    int updateByPrimaryKey(Student record);

    Integer selectStudentCount();
}